package org.chen.wordwave.bean;

import androidx.annotation.NonNull;

public class SignIn {
    private String email;
    private int totalSignInDays; // 累计签到天数
    private int consecutiveSignInDays; // 连续签到天数
    private String lastSignInDate; // 上次签到日期
    private int points; //积分
    private int luckyDrawBtn = 0;
    private boolean hasDiscountCoupon = false;
    private double discountRate = 1.0;
    private Long membershipExpiryDate = null;
    private boolean member;
    // 会员类型: 0-非会员，1-积分兑换，2-订阅
    private int membershipType = 0;

    public int getMembershipType() {
        return membershipType;
    }

    public void setMembershipType(int membershipType) {
        this.membershipType = membershipType;
    }

    public SignIn() {

    }

    public SignIn(String email, int totalSignInDays, int consecutiveSignInDays, String lastSignInDate, int points, int luckyDrawBtn) {
        this.email = email;
        this.totalSignInDays = totalSignInDays;
        this.consecutiveSignInDays = consecutiveSignInDays;
        this.lastSignInDate = lastSignInDate;
        this.points = points;
        this.luckyDrawBtn = luckyDrawBtn;
    }

    @NonNull
    @Override
    public String toString() {
        return "SignIn{" +
                "email='" + email + '\'' +
                ", totalSignInDays=" + totalSignInDays +
                ", consecutiveSignInDays=" + consecutiveSignInDays +
                ", lastSignInDate='" + lastSignInDate + '\'' +
                ", points=" + points +
                ", luckyDrawBtn=" + luckyDrawBtn +
                ", hasDiscountCoupon=" + hasDiscountCoupon +
                ", discountRate=" + discountRate +
                '}';
    }

    public boolean isMember() {
        return member;
    }

    public void setMember(boolean member) {
        this.member = member;
    }

    public Long getMembershipExpiryDate() {
        return membershipExpiryDate;
    }

    public void setMembershipExpiryDate(Long membershipExpiryDate) {
        this.membershipExpiryDate = membershipExpiryDate;
    }

    public double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(double discountRate) {
        this.discountRate = discountRate;
    }

    public boolean isHasDiscountCoupon() {
        return hasDiscountCoupon;
    }

    public void setHasDiscountCoupon(boolean hasDiscountCoupon) {
        this.hasDiscountCoupon = hasDiscountCoupon;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getTotalSignInDays() {
        return totalSignInDays;
    }

    public void setTotalSignInDays(int totalSignInDays) {
        this.totalSignInDays = totalSignInDays;
    }

    public int getConsecutiveSignInDays() {
        return consecutiveSignInDays;
    }

    public void setConsecutiveSignInDays(int consecutiveSignInDays) {
        this.consecutiveSignInDays = consecutiveSignInDays;
    }

    public String getLastSignInDate() {
        return lastSignInDate;
    }

    public void setLastSignInDate(String lastSignInDate) {
        this.lastSignInDate = lastSignInDate;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public int getLuckyDrawBtn() {
        return luckyDrawBtn;
    }

    public void setLuckyDrawBtn(int luckyDrawBtn) {
        this.luckyDrawBtn = luckyDrawBtn;
    }
}
